package com.mallcloud.mall.app.controller;

import com.mallcloud.mall.common.core.util.R;
import com.mallcloud.mall.mall.api.entity.dto.ProSignIn;
import com.mallcloud.mall.app.service.AppSignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "app-签到")
@RestController
@AllArgsConstructor
@RequestMapping("/app/sign")
public class AppSignController {
    private final AppSignService appSignService;

    @ApiOperation("会员签到")
    @PostMapping
    public R signIn(@RequestBody ProSignIn entity) {
		appSignService.signIn(entity);
        return R.ok();
    }
}
